/*
 * 版权所有 (C) 2015 知启蒙(ZHIQIM) 保留所有权利。[遇见知启蒙，邂逅框架梦]
 * 
 * https://zhiqim.org/project/zhiqim_framework/zhiqim_guestbook.htm
 *
 * Zhiqim Guestbook is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *          http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */
package org.zhiqim.example.gbook.dbo;

import java.io.Serializable;

import org.zhiqim.kernel.annotation.AnAlias;
import org.zhiqim.kernel.annotation.AnNew;
import org.zhiqim.kernel.json.Jsons;
import org.zhiqim.orm.annotation.*;

/**
 * 留言表 对应表《MESSAGE》
 */
@AnAlias("Message")
@AnNew
@AnTable(table="MESSAGE", key="MESSAGE_ID", type="InnoDB")
public class Message implements Serializable
{
    private static final long serialVersionUID = 1L;

    @AnTableField(column="MESSAGE_ID", type="long", notNull=true)    private long messageId;    //1.留言编号
    @AnTableField(column="MESSAGE_NAME", type="string,32", notNull=true)    private String messageName;    //2.访客称呼
    @AnTableField(column="MESSAGE_CONTACTING", type="string,50", notNull=false)    private String messageContacting;    //3.访客联系方式
    @AnTableField(column="MESSAGE_CONTENT", type="string,1000", notNull=true)    private String messageContent;    //4.访客留言内容
    @AnTableField(column="MESSAGE_TIME", type="string,19,char", notNull=true)    private String messageTime;    //5.访客留言时间
    @AnTableField(column="MESSAGE_RTIME", type="string,19,char", notNull=false)    private String messageRtime;    //6.管理员回复时间
    @AnTableField(column="MESSAGE_REPLY", type="string,1000", notNull=false)    private String messageReply;    //7.管理员回复内容

    public String toString()
    {
        return Jsons.toString(this);
    }

    public long getMessageId()
    {
        return messageId;
    }

    public void setMessageId(long messageId)
    {
        this.messageId = messageId;
    }

    public String getMessageName()
    {
        return messageName;
    }

    public void setMessageName(String messageName)
    {
        this.messageName = messageName;
    }

    public String getMessageContacting()
    {
        return messageContacting;
    }

    public void setMessageContacting(String messageContacting)
    {
        this.messageContacting = messageContacting;
    }

    public String getMessageContent()
    {
        return messageContent;
    }

    public void setMessageContent(String messageContent)
    {
        this.messageContent = messageContent;
    }

    public String getMessageTime()
    {
        return messageTime;
    }

    public void setMessageTime(String messageTime)
    {
        this.messageTime = messageTime;
    }

    public String getMessageRtime()
    {
        return messageRtime;
    }

    public void setMessageRtime(String messageRtime)
    {
        this.messageRtime = messageRtime;
    }

    public String getMessageReply()
    {
        return messageReply;
    }

    public void setMessageReply(String messageReply)
    {
        this.messageReply = messageReply;
    }

}
